package com.heima.article.controller.v1;

import com.heima.apis.article.IArticleClient;
import com.heima.article.service.ApArticleService;
import com.heima.model.article.dtos.ArticleInfoDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 胡慧
 * @title: ArticleInfoController
 * @projectName heima-leadnews
 * @description: TODO
 * @date 2021/3/31:39
 */
@RestController
@RequestMapping("/api/v1/article")
public class ArticleInfoController  {
    @Autowired
    private ApArticleService apArticleService;

    @PostMapping("/load_article_info")
    public ResponseResult loadArticleInfo(@RequestBody ArticleInfoDto dto){
        return apArticleService.loadArticleInfo(dto);
    }
}
